package com.peng.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 客户表
 * @TableName t_customer
 */
@TableName(value ="t_customer")
@Data
public class TCustomer implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键，自动增长，客户ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 线索ID
     */
    @TableField(value = "clue_id")
    private Integer clue_id;

    /**
     * 选购产品
     */
    @TableField(value = "product")
    private Integer product;

    /**
     * 客户描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 下次联系时间
     */
    @TableField(value = "next_contact_time")
    private Date next_contact_time;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date create_time;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private Integer create_by;

    /**
     * 编辑时间
     */
    @TableField(value = "edit_time")
    private Date edit_time;

    /**
     * 编辑人
     */
    @TableField(value = "edit_by")
    private Integer edit_by;

    /**
     * 一对一关联8个对象
     */
    @TableField(exist = false)
    private TClue clueDO = new TClue();
    @TableField(exist = false)
    private TUser ownerDO = new TUser();
    @TableField(exist = false)
    private TActivity activityDO = new TActivity();
    @TableField(exist = false)
    private TDicValue appellationDO = new TDicValue();
    @TableField(exist = false)
    private TDicValue needLoanDO = new TDicValue();
    @TableField(exist = false)
    private TDicValue intentionStateDO = new TDicValue();
    @TableField(exist = false)
    private TProduct intentionProductDO = new TProduct();
    @TableField(exist = false)
    private TDicValue stateDO = new TDicValue();
    @TableField(exist = false)
    private TDicValue sourceDO = new TDicValue();
}